import axios from '@/utils/request'

import config from '@/common/config'

let base = config.getMkBasePath();


/**
 * acti_activity_reward_record
 *1    默认只开放普通查询，所有查询，只要上传	 分页参数 {currentPage:当前页码从1开始,pageSize:每页记录数,total:总记录【数如果是0后台会自动计算总记录数非0不会自动计算】}，后台都会自动按分页查询 其它 api用到再打开，没用到的api请注释掉，
 *2 查询、新增、修改的参数格式  params={id:'主键 主键',actiId:'活动编号',rewardType:'奖励类型card卡券cash现金points积分goods商品',rewardEntityId:'奖励实体编号，如奖励卡券此次填写卡券编号',rewardEntityNum:'奖励数量，如卡券为张数现金为金额，积分为积分数',rewardDesc:'奖励描述',entityFp:'实体参数1用于扩展',entityShopId:'实体归属商户精确到门店或者商户时使用',entityLocationId:'实体归属门店精确到门店的情况下使用',entitySp:'实体参数2用于扩展',userid:'参与人编号',username:'参与人姓名',receiveStatus:'领取状态0-待领取1-已领取',outBizId:'外部业务编号',sentStatus:'发放状态0-待发放1-已发放2-发放失败3-已冲正'}
 **/
 
//普通查询 条件之间and关系  
export const listActivityRewardRecord = params => { return axios.get(`${base}/mk/pub/activityRewardRecord/list`, { params: params }); };

//模糊查询acti_activity_reward_record 条件之间or关系  
// export const listActivityRewardRecordKey = params => { return axios.get(`${base}/mk/pub/activityRewardRecord/list`, { params: params }); };

//删除一条acti_activity_reward_record params={id:'主键 主键'}
export const delActivityRewardRecord = params => { return axios.post(`${base}/mk/pub/activityRewardRecord/del`,params); };

//批量删除acti_activity_reward_record  params=[{id:'主键 主键'}]
export const batchDelActivityRewardRecord = params => { return axios.post(`${base}/mk/pub/activityRewardRecord/batchDel`, params); };

// //修改一条acti_activity_reward_record记录
// export const editActivityRewardRecord = params => { return axios.post(`${base}/mng/activity/activityRewardRecord/edit`, params); };

// //新增一条acti_activity_reward_record
// export const addActivityRewardRecord = params => { return axios.post(`${base}/mng/activity/activityRewardRecord/add`, params); };